package com.techstar.api.pojo.bus;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 线网统计信息
 * @date 2021年7月16日
 *
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "net_statistics_info")
@org.hibernate.annotations.Table(appliesTo = "net_statistics_info",comment="pbtp-2-线网统计信息")
public class NetStatisticsInfo {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(columnDefinition="varchar(100) COMMENT '站点数量'")
	private String totalStationNum;
	@Column(columnDefinition="varchar(100) COMMENT '场站数量'")
	private String hubNum;
	@Column(columnDefinition="varchar(100) COMMENT '车辆数量'")
	private String vehicleNum;
	@Column(columnDefinition="varchar(100) COMMENT '线网密度'")
	private String lineDensity;
	@Column(columnDefinition="varchar(100) COMMENT '公交专用道长度'")
	private String dedicatedMileage;
	@Column(columnDefinition="varchar(100) COMMENT '线网长度'")
	private String totalMileage;
	@Column(columnDefinition="varchar(100) COMMENT '重复系数'")
	private String networkRepeat;
	@Column(columnDefinition="varchar(100) COMMENT '线路总长度'")
	private String lineLength;
	@Column(columnDefinition="varchar(100) COMMENT '线路数量'")
	private String totalLineNum;
	@Column(columnDefinition="varchar(100) COMMENT '驾驶员数量'")
	private String driverNum;
	@Column(columnDefinition="varchar(100) COMMENT '充电场站数量'")
	private String chargingNum;
	@Column(columnDefinition="datetime(0) COMMENT '业务统计时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTime;
	@Column(columnDefinition="varchar(100) COMMENT '300米覆盖率'")
	private String coverage300;
	@Column(columnDefinition="varchar(100) COMMENT '500米覆盖率'")
	private String coverage500;
}
